define(["jquery","bbcare"],function($,$bb){
    var servers = {};
    var URL = $bb.baseUrl("followup");
    /*
    * 获取评估时间：
    * */
    servers.getQuesTime = function(params,callback,otherParams){
        $bb.ajax({
            url: URL + "followup/service/patient/evaluation/queryPtResultTimes",
            data:JSON.stringify({
                data :{
                    "evaluationType":"GLE;LES;OSI;DGLE",
                    "userId":params.userId
                }
            }),
            success: function(data){
                callback(data);
            }
        });
    };
    /*
     * 获取评估信息：
     * */
    servers.getQuesInfo = function(params,callback,otherParams){
        $bb.ajax({
            url: URL + "followup/service/patient/evaluation/queryPtResultDay",
            data:JSON.stringify({
                data :{
                    "evaluationType":"GLE;LES;OSI;DGLE",
                    "userId":params.userId,
                    "createTime":params.createTime
                }
            }),
            success: function(data){
                callback(data);
            }
        });
    };
    /*
    * 获取问卷分数：
    * */
    servers.getQuesScore = function(params,callback,otherParams){
        $bb.ajax({
            url: URL + "followup/service/patient/evaluation/getHistoryScore",
            data:JSON.stringify({
                data :{
                    "examinationPaperName":params.type,
                    "userId":params.userId
                }
            }),
            success: function(data){
                callback(data);
            }
        });
    };
    /*
    * 获取问卷：
    * */
    servers.getQuestions = function(params,callback,otherParams){
        $bb.ajax({
            url: URL + "followup/service/patient/evaluation/getAllPostion",
            data:JSON.stringify({
                data :{
                    "examinationPaperName":params.type,
                    "userId":params.userId
                }
            }),
            success: function(data){
                callback(data);
            }
        });
    };
    return servers;
});